namespace iPhOwa.Exchange.WebDav
{
	/// <summary>
	/// Represents a where condition
	/// </summary>
	public sealed class Where
	{
		private readonly ConditionalOperator conditionalOperator;
		private readonly string propertyName;
		private readonly object value;

		/// <summary>
		/// Constructor.
		/// </summary>
		public Where(string propertyName, ConditionalOperator conditionalOperator, object value)
		{
			this.propertyName = propertyName;
			this.conditionalOperator = conditionalOperator;
			this.value = value;
		}

		/// <summary>
		/// PropertyName
		/// </summary>
		public string PropertyName
		{
			get { return propertyName; }
		}

		/// <summary>
		/// ConditionalOperator
		/// </summary>
		public ConditionalOperator ConditionalOperator
		{
			get { return conditionalOperator; }
		}

		/// <summary>
		/// Value
		/// </summary>
		public object Value
		{
			get { return value; }
		}
	}
}